import axios from '~/axios'

export function login(username, password){
  return axios.post('/login/in',{
    username, password
  })
}

export function getUserInfo(userId){
  return axios.get(`/sysUser/selectByUserId/${userId}`)
}

export function logout(){
  return axios.post('/login/out')
}

export function getUserMenus(){
  return axios.post('/vue3menu/list')
}
